import { CODE } from "../utils/const"

export interface ReturnData<T>{
    code: CODE,
    meg?: string,
    data?: T,
    [prop: string]: any
}


export interface MyFileDirItf {
    parentId: number;
    folderOrFileId: number;
    path: string;
    isFile: boolean;
    isImg: boolean;
    isVideo: boolean;
    size: number;
    thumbnailPath: string;
    ext: string;
    id?: number;
    fileName?: string;
    relativePath?: string;
    duration? :number
}


export interface MediaPromise{
    path: string,
    duration: number,
}